package com.guanganren.service.impl;

import java.util.List;

import com.guanganren.db.dao.AreaDao;
import com.guanganren.db.entity.Area;
import com.guanganren.service.AreaService;

public class AreaServiceImpl implements AreaService{

	private AreaDao areaDao;

	public AreaDao getAreaDao() {
		return areaDao;
	}

	public void setAreaDao(AreaDao areaDao) {
		this.areaDao = areaDao;
	}

	@Override
	public List<Area> getAreaByParentId(String id) throws Exception {
		List<Area> list = null;
		try{
			list = areaDao.getAreaByParentId(id);
		}catch(Exception ex){
			throw new Exception();
		}
		return list;
	}
	

}
